﻿@{string action = Request.RequestContext.RouteData.Values["action"].ToString();}
@model Common.Contract.Authentication.Record.UserRecord
@if (Model.GroupIdentifier != "4")
{
    <ul class="nav nav-tabs bar_tabs sme-tabs" role="tablist">
        @if (action.ToUpper() == "SaleContestRanking".ToUpper())
        {
            <li id="cm-tc-tc-tab" role="presentation" class="active">
                @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestPersonRanking.ToUpper(), "SaleContestRanking", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
            </li>
        }
        else
        {
            <li id="cm-tc-tc-tab" role="presentation" class="">
                @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestPersonRanking.ToUpper(), "SaleContestRanking", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
            </li>
        }
        @if (action.ToUpper() == "SaleContestRankingBranch".ToUpper())
        {
            <li id="cm-tc-nc-tab" role="presentation" class="active">
                @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestBranchRanking.ToUpper(), "SaleContestRankingBranch", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
            </li>
        }
        else
        {
            <li id="cm-tc-nc-tab" role="presentation" class="">
                @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestBranchRanking.ToUpper(), "SaleContestRankingBranch", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
            </li>
        }
        @if (Model.GroupIdentifier != "3")
        {
            if (action.ToUpper() == "SaleContestRankingRegion".ToUpper())
            {
                <li id="cm-tc-nc-tab" role="presentation" class="active">
                    @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestRegionRanking.ToUpper(), "SaleContestRankingRegion", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
                </li>
            }
            else
            {
                <li id="cm-tc-nc-tab" role="presentation" class="">
                    @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.SaleContestRegionRanking.ToUpper(), "SaleContestRankingRegion", "SalePerformance", new { salecontest = Request.QueryString["salecontest"] }, null)
                </li>
            }
        }
    </ul>
}